package io.wdb.modules.generator.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.wdb.modules.generator.generator.dao.BookInfoDao;
import io.wdb.modules.generator.generator.entity.BookInfoEntity;
import io.wdb.modules.generator.generator.service.BookInfoService;



@Service("bookInfoService")
public class BookInfoServiceImpl implements BookInfoService {
	@Autowired
	private BookInfoDao bookInfoDao;
	
	@Override
	public BookInfoEntity queryObject(String isbnNo){
		return bookInfoDao.queryObject(isbnNo);
	}
	
	@Override
	public List<BookInfoEntity> queryList(Map<String, Object> map){
		return bookInfoDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return bookInfoDao.queryTotal(map);
	}
	
	@Override
	public void save(BookInfoEntity bookInfo){
		bookInfoDao.save(bookInfo);
	}
	
	@Override
	public void update(BookInfoEntity bookInfo){
		bookInfoDao.update(bookInfo);
	}
	
	@Override
	public void delete(String isbnNo){
		bookInfoDao.delete(isbnNo);
	}
	
	@Override
	public void deleteBatch(String[] isbnNos){
		bookInfoDao.deleteBatch(isbnNos);
	}
	
}
